package com.wang.common.core.constants;


public class CacheConstants {

    public static final long EXP = 4320;  //token过期时间

    public static final Long REFRESH_TIME = 1440L; //如果token的剩余时长小于1440minutes, 更新token时长

    public static final String LOGIN_TOKEN_KEY = "login_token:key:"; //token前缀

    public final static String PHONE_CODE_KEY = "phone:code:key:"; //存储手机验证码

    public final static String SEND_CODE_TIMES_KEY = "send_code:times:key";//存储发送验证码的次数

    public final static String EXAM_UNFINISHED_LIST = "exam:unfinished:list"; //存储未完赛竞赛id列表

    public final static String EXAM_HISTORY_LIST = "exam:history:list";  //存储历史竞赛id列表

    public final static String USER_EXAM_LIST = "user:exam:list:";   //存储用户已报名的竞赛id列表

    public final static String EXAM_DETAIL = "exam:detail:"; //存储竞赛基本信息

    public static final String USER_UPLOAD_TIMES_KEY = "user:upload:times:"; //存储用户上传文件的次数

    public static final String QUESTION_LIST = "question:list"; //存储题目id列表

    public static final String EXAM_QUESTION_LIST = "exam:question:list:"; //存储竞赛题目id列表

    public final static String USER_DETAIL = "user:detail:"; //存储用户详情信息

    public final static long USER_EXP = 10;

    public static final String EXAM_RANK_LIST = "exam:rank:list:"; //存储竞赛排名列表

    public static final String MESSAGE_DETAIL = "message:detail:";  //存储站内信的详细信息

    public static final String USER_MESSAGE_LIST = "user:message:list:"; //存储用户站内信列表

}
